﻿@model LoginModel
@using Nop.Web.Models.Customer;
@using Nop.Web.Framework.UI.Captcha;
@{
    Layout = "~/Themes/CNet/Shared/_HomePage_SubOne.cshtml";
    //title
    Html.AddTitleParts(T("PageTitle.Login").Text);
}
<script type="text/javascript">
    $(function () {
        $("#imgRegister").click(function () {
            parent.jQuery.fancybox.close();
            parent.document.getElementById("Register").click();
        });
    })
    

</script>
<style >
    html,body{
        overflow-x:hidden;
        overflow-y:hidden;
        overflow:hidden;
</style>
<div class="ms_login">
<div class="login_title">
<b>登录</b>
<span><a href="#"><img src="@Url.Content("~/themes/Cnet/Content/image/login_closed.jpg")"></a></span>
</div>
<div class="login_nr">
@using (Html.BeginForm())
{
    <div class="message-error">
@Html.ValidationSummary(true, T("Account.Login.Unsuccessful").Text)
</div>
<table width="0" border="0">
<tr>
<td style="width:60px;">账&nbsp;户:</td>
<td>
@if (Model.UsernamesEnabled)
{
@Html.TextBoxFor(m => m.Username, new { @class = "ms_input" }) 
@Html.ValidationMessageFor(m => m.Username)
}
else
{
@Html.TextBoxFor(m => m.Email, new { @class = "ms_input" })
@Html.ValidationMessageFor(m => m.Email)
}
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td class="td_slogin">您注册的邮箱就是您的登陆账号</td>
</tr>
<tr>
<td style="width:60px;">密&nbsp;码:</td>
<td>@Html.PasswordFor(m => m.Password, new { @class = "ms_input" })
@Html.ValidationMessageFor(m => m.Password)</td>
</tr>
<tr>
<td style="height:5px;"></td>
<td></td>
</tr>
<tr>
<td>&nbsp;</td>
<td class="td_href">
@Html.CheckBoxFor(m => m.RememberMe)
@Html.LabelFor(m => m.RememberMe)</td>
</tr>
<tr>
<td></td>
<td class="td_button">
<input type="image" style="vertical-align:middle;" src="@Url.Content("~/themes/Cnet/Content/image/login_button.jpg")"  />
<a href="javascript:;" id="imgRegister"><img style="vertical-align:middle;" src="@Url.Content("~/themes/Cnet/Content/image/zc_button.jpg")" border="0"></a>
</td>
</tr>
@*<tr>
<td>&nbsp;</td>
<td class="td_href">@Html.RouteLink(T("Account.Login.ForgotPassword").Text, "PasswordRecovery")<a href="#">其他登录</a></td>
</tr>*@
</table>
}
</div>
</div>
